<?php
class Muser extends CI_Model{
	public function __construct(){
		parent::__construct();
		$this->load->database();
	}
	
	public function checkLogin($userName, $passWord){
		$query = $this->db->query("select * from users where username ='".$userName."' and password='".$passWord."'");
		if($query->num_rows()<1){
			return false;
		}
		return true;
	}
}